﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="Promotion_Promotion4List" Codebehind="Promotion4List.aspx.cs" %>

<%@ Register Src="../Controls/CXFAD8ListControl.ascx" TagName="CXFAD8ListControl"
    TagPrefix="uc3" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
    <script src="../Include/Js/clock.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div align="Justify">
         <h2>优惠活动</h2>

                                                                <div class="menu_bg">
                                                                    <asp:Button ID="btnAdd" CssClass="input_button" Text="新增" runat="server" OnClick="btnAdd_Click" />
                                                                </div>
                                                                <div class="menu_bg">
                                                                    促销单编号：<asp:TextBox ID="txtDJBH" runat="server"></asp:TextBox>
                                                                    &nbsp;制单时间：<input id="Text1" style="width: 100px" onmousedown="setday(this)" type="text"
                                                                        runat="server" />至<input id="Text2" onmousedown="setday(this)" style="width: 100px"
                                                                            type="text" runat="server" />
                                                                    <asp:DropDownList ID="ddl_State" runat="server" AppendDataBoundItems="True">
                                                                        <asp:ListItem>状态</asp:ListItem>
                                                                        <asp:ListItem Value="1">有效</asp:ListItem>
                                                                        <asp:ListItem Value="2">&#160;未审核</asp:ListItem>
                                                                        <asp:ListItem Value="3">&#160;已审核</asp:ListItem>
                                                                        <asp:ListItem Value="4">&#160;运行中</asp:ListItem>
                                                                        <asp:ListItem Value="5">&#160;已停止</asp:ListItem>
                                                                        <asp:ListItem Value="6">无效</asp:ListItem>
                                                                    </asp:DropDownList>
                                                                    <asp:Button ID="Btn_Search" runat="server" CssClass="input_button" Text="查找" OnClick="Btn_Search_Click" />
                                                                </div>
                                                                <div class="juli"><asp:GridView ID="grdCXFAD8" runat="server" AutoGenerateColumns="False" OnRowDataBound="grdCXFAD8_RowDataBound"
                                                                    OnRowCommand="grdCXFAD8_RowCommand" OnRowCancelingEdit="grdCXFAD8_RowCancelingEdit"
                                                                    OnRowEditing="grdCXFAD8_RowEditing" Width="100%"  BackColor="White" BorderColor="#999999" BorderStyle=Solid BorderWidth="1px" CellPadding="3" Height="1px" AllowPaging="True" DataKeyNames="DJBH" OnPageIndexChanging="grdCXFAD8_PageIndexChanging" PageSize="8">
                                                                    <Columns>
                                                                        <asp:TemplateField HeaderText="促销单号" HeaderStyle-HorizontalAlign="left" HeaderStyle-BorderStyle="solid" HeaderStyle-ForeColor="#000000">
                                                                            <ItemTemplate>
                                                                                <input id="Hid_ID" runat="server" type="hidden" value='<%#Eval("DJBH") %>' />
                                                                                <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%#"Promotion4Edit.aspx?code="+Eval("DJBH")+"&status="+Eval("STATUS") %>'><%#Eval("DJBH") %></asp:HyperLink>
                                                                            </ItemTemplate>
                                                                            <ItemStyle Width="150px" HorizontalAlign="left" BorderStyle="solid" />
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="促销名称" HeaderStyle-HorizontalAlign="left" HeaderStyle-BorderStyle="solid" HeaderStyle-ForeColor="#000000">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="Label1" runat="server" Text='<%#Eval("HDMC") %>'></asp:Label>
                                                                            </ItemTemplate>
                                                                            <EditItemTemplate>
                                                                                <asp:TextBox runat="server" ID="Tbx_Name" Text='<%#Eval("HDMC") %>'></asp:TextBox>
                                                                            </EditItemTemplate>
                                                                            <ItemStyle Width="150px" HorizontalAlign="left" BorderStyle="solid" />
                                                                        </asp:TemplateField>
                                                                        <asp:BoundField DataField="RQ" HeaderText="制单时间" ReadOnly="True" HeaderStyle-HorizontalAlign="left" HeaderStyle-BorderStyle="solid" HeaderStyle-ForeColor="#000000">
                                                                            <ItemStyle Width="150px" HorizontalAlign="left" BorderStyle="solid" />
                                                                        </asp:BoundField>
                                                                        <asp:TemplateField HeaderText="状态" HeaderStyle-HorizontalAlign="left" HeaderStyle-BorderStyle="solid" HeaderStyle-ForeColor="#000000">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="Label11" runat="server" Text='<%# Eval("STATUS") %>'></asp:Label>
                                                                            </ItemTemplate>
                                                                            <ItemStyle Width="100px" HorizontalAlign="left" BorderStyle="solid" />
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="编辑" ShowHeader="False" Visible="False">
                                                                            <EditItemTemplate>
                                                                                <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="True" CommandName="Up"
                                                                                    CommandArgument='<%#Eval("DJBH") %>' Text="更新"></asp:LinkButton>
                                                                                <asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="False" CommandName="Cancel"
                                                                                    Text="取消"></asp:LinkButton>
                                                                            </EditItemTemplate>
                                                                            <ItemTemplate>
                                                                                <asp:LinkButton ID="Lbtn_Modify" runat="server" CausesValidation="False" CommandName="Edit"
                                                                                    Text="编辑"></asp:LinkButton>
                                                                            </ItemTemplate>
                                                                            <ItemStyle  HorizontalAlign="left" BorderStyle="solid" />
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="操作" HeaderStyle-HorizontalAlign="left" HeaderStyle-BorderStyle="solid" HeaderStyle-ForeColor="#000000">
                                                                            <ItemTemplate>
                                                                                <asp:LinkButton ID="Lbtn_Valid" runat="server" CausesValidation="False" CommandName="Valid"
                                                                                    CommandArgument='<%#Eval("DJBH") %>' Text="审核"></asp:LinkButton>
                                                                                <asp:LinkButton runat="server" ID="Lbtn_Stop" CausesValidation="false" CommandName="Stop"
                                                                                    CommandArgument='<%#Eval("DJBH") %>' Text="删除" ForeColor="red"></asp:LinkButton>
                                                                                <asp:LinkButton runat="server" ID="Lbtn_Run" CausesValidation="false" CommandName="Run"
                                                                                    CommandArgument='<%#Eval("DJBH") %>' Text="运行"></asp:LinkButton>
                                                                                <asp:LinkButton runat="server" ID="Lbtn_NoRun" CausesValidation="false" CommandName="NoRun"
                                                                                    CommandArgument='<%#Eval("DJBH") %>' Text="停止"></asp:LinkButton>
                                                                                <input id="Hid_Auidt" runat="server" type="hidden" value='<%#Eval("JZ") %>' />
                                                                                <input id="Hid_Sp" runat="server" type="hidden" value='<%#Eval("SP") %>' />
                                                                                <input id="Hid_Run" runat="server" type="hidden" value='<%#Eval("RUN") %>' />
                                                                            </ItemTemplate>
                                                                            <ItemStyle Width="100px" HorizontalAlign="left" BorderStyle="solid" />
                                                                        </asp:TemplateField>
                                                                    </Columns>
                                                                    <HeaderStyle BackColor="#F1F1F1" HorizontalAlign="Left" ForeColor="DimGray" />
                                                                    <RowStyle Width="150px" />
                                                                    <PagerSettings FirstPageText="首页" LastPageText="上页" NextPageText="下页" />
                                                                </asp:GridView></div>
        </div>
    </form>
</body>
</html>
